package com.ruoyi.agencyfund.service;

import com.ruoyi.agencyfund.factory.CustomerFeignServiceFallbackFactory;
import com.ruoyi.common.core.web.domain.AjaxResult;
import com.ruoyi.common.core.web.page.TableDataInfo;

import com.ruoyi.customer.domain.OrderContract;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;



@FeignClient( name = "tms-customer", fallbackFactory = CustomerFeignServiceFallbackFactory.class)/*(contextId = "customerFeignService" , value = "tms-customer" , fallbackFactory = CustomerFeignServiceFallbackFactory.class)*/
public interface CustomerFeignService {



    /**
     * 查询啊列表
     */

    @GetMapping("/contract/list")
    public TableDataInfo list(OrderContract orderContract);





    /**
     * 获取啊详细信息
     */

    @GetMapping(value = "/contract/{orderNumber}")
    public AjaxResult getInfo(@PathVariable(value = "orderNumber") Long orderNumber);





    /**
     * 修改啊
     */

    @PutMapping
    public AjaxResult edit(@RequestBody OrderContract orderContract);


    /**
     * 删除啊
     */

    @DeleteMapping("/contract/{orderNumbers}")
    public AjaxResult remove(@PathVariable(value = "orderNumbers") Long[] orderNumbers);

}
